package com.my.study.springframework.bean.factory.config;

import com.my.study.springframework.bean.factory.HierarchicalBeanFactory;

/**
 * @author: yidujun
 * @create: 2021/06/22 13:48
 */
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry{

    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";


    /**
     * 添加
     * @param beanPostProcessor
     */
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例对象
     */
    void destroySingletons();
}
